package jgl.vajra.management.part.home.fragment;

import jgl.vajra.management.R;
import jgl.vajra.management.databinding.FragmentHomeTwoBinding;
import jgl.vajra.management.manager.IntentManager;
import jgl.vajra.management.part.home.contract.HomeTwoContract;
import jgl.vajra.management.part.home.viewModel.HomeTwoViewModel;
import jgl.vajra.management.widget.mvvm.factory.CreateViewModel;
import jgl.vajra.management.widget.mvvm.view.BaseMVVMFragment;

@CreateViewModel(HomeTwoViewModel.class)
public class HomeTwoFragment extends BaseMVVMFragment<HomeTwoViewModel, FragmentHomeTwoBinding> implements HomeTwoContract.View {

    @Override
    public int getLayoutId() {
        return R.layout.fragment_home_two;
    }

    @Override
    public void initView() {
        mBinding.setView(this);
    }

    @Override
    public void initData() {

    }

    @Override
    public void initEvent() {

    }

    //客户注册
    //internal 0-外部车辆，1-内部车辆
    @Override
    public void onRegister(int internal) {
        IntentManager.toCustomerRegistrationActivity(mActivity,internal);
    }
}
